package com.createidea.scrumfriend.service.statistics;

import java.text.SimpleDateFormat;
import java.sql.Date;
import java.util.List;

import org.jfree.data.category.CategoryDataset;

import com.createidea.scrumfriend.to.SprintTo;
import com.createidea.scrumfriend.to.StatisticsProjectTo;

public interface StatisticsService {
	public static final SimpleDateFormat dateFormat = new SimpleDateFormat("MM/dd/yyyy"); 
	
	public void createStatisticsForProject(SprintTo sprint);

	public List<StatisticsProjectTo> getProjectStatistics(String projectId);
	
	public  float[][] createDataForProjectBurnDown(String projectId);

	public float calculateCommittedStoryPoint(SprintTo sprint);

	public float calculateCompletedStoryPoint(SprintTo sprint);

	public float calculateTotalEffortForSprint(SprintTo sprint);

	public float calculateRemainingEffortForSprint(SprintTo sprint);

	public void updateStatisticsForSprint(SprintTo sprint);

	public CategoryDataset createDataForSprints(String projectId);

	public void setStatisticsDate(SprintTo sprint, Date date);

	public CategoryDataset getDataForSprintBurnDown(String sprintId);

}
